FROM xiaobu191/php-cli-pm2-taos

SHELL ["/bin/bash", "-cex"]

COPY aapt_64 /usr/local/bin

RUN apt-get update; \
    apt-get install -y --no-install-recommends \
            strace \
            ffmpeg \
            yasm \
            default-mysql-client \
    ; \
    rm -rf /var/lib/apt/lists/*

RUN chmod +x /usr/local/bin/aapt_64 \
    && ln -s /usr/local/bin/aapt_64 /usr/local/bin/aapt \
    && chown www-data:www-data /usr/local/bin/aapt_64 /usr/local/bin/aapt